package com.enterprise.domain;
import com.enterprise.domXml.*;
public class WebConfigure {
	private String siteTitle;
	private String siteName;
	private String siteUrl;
	private String siteKey;
	private String siteDesc;
	private String enterpriseMail;
	private String logoUrl;
	private String webmasterName;
	private String webmasterEmail;
	private String copyRight;
	private int maxPerPage_Default;
	private int new_Count;
	private int product_count;
	private int maxPerPage_Search;
	private int maxPerPage_Content;
	private boolean isNewComment;
	private boolean isProductFileUp;
	private boolean isShowPublicNote;
	private boolean isProductCheck;
	private int hitHot_Count;
	private int maxFileSize;
	private String saveUpFilesPath;
	private String upFileType;
	private boolean isDelUpFiles;
	private int sessionTime;
	public static XmlConfigure configure=new XmlConfigure(XmlConfigure.class.getClassLoader().getResource("SiteConfi.xml").getPath());
	

	public String getSiteTitle() {
		siteTitle=configure.getVale("SiteTitle");
		return siteTitle;
	}
	public void setSiteTitle(String siteTitle) {
		configure.setVale("SiteTitle", siteTitle);
	}
	public String getSiteName() {
		siteName=configure.getVale("SiteName");
		return siteName;
	}
	public void setSiteName(String siteName) {
		configure.setVale("SiteName", siteName);
	}
	public String getSiteUrl() {
		siteUrl=configure.getVale("SiteUrl");
		return siteUrl;
	}
	public void setSiteUrl(String siteUrl) {
		configure.setVale("SiteUrl", siteUrl);
	}
	public String getSiteKey() {
		siteKey=configure.getVale("SiteKey");
		return siteKey;
	}
	public void setSiteKey(String siteKey) {
		configure.setVale("SiteKey", siteKey);
	}
	public String getSiteDesc() {
		siteDesc=configure.getVale("Sitedes");
		return siteDesc;
	}
	public void setSiteDesc(String siteDesc) {
		configure.setVale("Sitedes", siteDesc);
	}
	public String getEnterpriseMail() {
		enterpriseMail=configure.getVale("EnterpriseMail");
		return enterpriseMail;
	}
	public void setEnterpriseMail(String enterpriseMail) {
		configure.setVale("EnterpriseMail", enterpriseMail);
	}
	public String getLogoUrl() {
		logoUrl=configure.getVale("LogoUrl");
		return logoUrl;
	}
	public void setLogoUrl(String logoUrl) {
		configure.setVale("LogoUrl", logoUrl);
	}
	public String getWebmasterName() {
		webmasterName=configure.getVale("WebmasterName");
		return webmasterName;
	}
	public void setWebmasterName(String webmasterName) {
		configure.setVale("WebmasterName", webmasterName);
	}
	public String getWebmasterEmail() {
		webmasterEmail=configure.getVale("WebmasterEmail");
		return webmasterEmail;
	}
	public void setWebmasterEmail(String webmasterEmail) {
		configure.setVale("WebmasterEmail", webmasterEmail);
	}
	public String getCopyRight() {
		copyRight=configure.getVale("Copyright");
		return copyRight;
	}
	public void setCopyRight(String copyRight) {
		configure.setVale("Copyright", copyRight);
	}
	public int getMaxPerPage_Default() {
		maxPerPage_Default=Integer.parseInt(configure.getVale("MaxPerPage_Default"));
		return maxPerPage_Default;
	}
	public void setMaxPerPage_Default(int maxPerPage_Default) {
		configure.setVale("MaxPerPage_Default",String.valueOf(maxPerPage_Default));
	}
	public int getNew_Count() {
		new_Count=Integer.parseInt(configure.getVale("New_count"));
		return new_Count;
	}
	public void setNew_Count(int new_Count) {
		configure.setVale("New_count", String.valueOf(new_Count));
	}
	public int getProduct_count() {
		product_count=Integer.parseInt(configure.getVale("Product_count"));
		return product_count;
	}
	public void setProduct_count(int product_count) {
		configure.setVale("Product_count", String.valueOf(product_count));
	}
	public int getMaxPerPage_Search() {
		maxPerPage_Search=Integer.parseInt(configure.getVale("MaxPerPage_Search"));
		return maxPerPage_Search;
	}
	public void setMaxPerPage_Search(int maxPerPage_Search) {
		configure.setVale("MaxPerPage_Search",String.valueOf(maxPerPage_Search));
	}
	public int getMaxPerPage_Content() {
		maxPerPage_Content=Integer.parseInt(configure.getVale("MaxPerPage_Content"));
		return maxPerPage_Content;
	}
	public void setMaxPerPage_Content(int maxPerPage_Content) {
		configure.setVale("MaxPerPage_Content", String.valueOf(maxPerPage_Content));
	}
	public boolean isNewComment() {
		isNewComment=Boolean.valueOf(configure.getVale("IsNewComment"));
		return isNewComment;
	}
	public void setNewComment(boolean isNewComment) {
		configure.setVale("IsNewComment", String.valueOf(isNewComment));
	}
	public boolean isProductCheck(){
		isProductCheck=Boolean.valueOf(configure.getVale("IsProductCheck"));
		return isProductCheck;
	}
	public void setProductCheck(boolean isProductCheck){
		configure.setVale("IsProductCheck", String.valueOf(isProductCheck));
	}
	public boolean isProductFileUp() {
		isProductFileUp=Boolean.valueOf(configure.getVale("IsProductFileUp"));
		return isProductFileUp;
	}
	public void setProductFileUp(boolean isProductFileUp) {
		configure.setVale("IsProductFileUp", String.valueOf(isProductFileUp));
	}
	public boolean isShowPublicNote() {
		isShowPublicNote=Boolean.valueOf(configure.getVale("IsShowPublicNote"));
		return isShowPublicNote;
	}
	public void setShowPublicNote(boolean isShowPublicNote) {
		configure.setVale("IsShowPublicNote", String.valueOf(isShowPublicNote));
	}
	public int getHitHot_Count() {
		hitHot_Count=Integer.parseInt(configure.getVale("HitHot_Count"));
		return hitHot_Count;
	}
	public void setHitHot_Count(int hitHot_Count) {
		configure.setVale("HitHot_Count", String.valueOf(hitHot_Count));
	}
	public int getMaxFileSize() {
		maxFileSize=Integer.parseInt(configure.getVale("MaxFileSize"));
		return maxFileSize;
	}
	public void setMaxFileSize(int maxFileSize) {
		configure.setVale("MaxFileSize", String.valueOf(maxFileSize));
	}
	public String getSaveUpFilesPath() {
		saveUpFilesPath=configure.getVale("SavaUpFilesPath");
		return saveUpFilesPath;
	}
	public void setSaveUpFilesPath(String saveUpFilesPath) {
		configure.setVale("SavaUpFilesPath", saveUpFilesPath);
	}
	public String getUpFileType() {
		upFileType=configure.getVale("UpFileType");
		return upFileType;
	}
	public void setUpFileType(String upFileType) {
		configure.setVale("UpFileType", upFileType);
	}
	public boolean isDelUpFiles() {
		isDelUpFiles=Boolean.parseBoolean(configure.getVale("DelUpFiles"));
		return isDelUpFiles;
	}
	public void setDelUpFiles(boolean isDelUpFiles) {
		configure.setVale("DelUpFiles", String.valueOf(isDelUpFiles));
	}
	public int getSessionTime() {
		sessionTime=Integer.parseInt(configure.getVale("SessionTime"));
		return sessionTime;
	}
	public void setSessionTime(int sessionTime) {
		configure.setVale("SessionTime", String.valueOf(sessionTime));
	}
	public WebConfigure(String siteTitle, String siteName, String siteUrl,
			String siteKey, String siteDesc, String enterpriseMail,
			String logoUrl, String webmasterName, String webmasterEmail,
			String copyRight, int maxPerPage_Default, int new_Count,
			int product_count, int maxPerPage_Search, int maxPerPage_Content,
			boolean isNewComment, boolean isProductCheck,
			boolean isProductFileUp, boolean isShowPublicNote, int hitHot_Count,
			int maxFileSize, String saveUpFilesPath, String upFileType,
			boolean isDelUpFiles, int sessionTime) {
		super();
		setSiteTitle(siteTitle);
		setSiteName(siteName);
		setSiteUrl(siteUrl);
		setSiteKey(siteKey);
		setSiteDesc(siteDesc);
		setEnterpriseMail(enterpriseMail);
		setLogoUrl(logoUrl);
		setWebmasterName(webmasterName);
		setWebmasterEmail(webmasterEmail);
		setCopyRight(copyRight);
		setMaxPerPage_Default(maxPerPage_Default);
		setNew_Count(new_Count);
		setProduct_count(product_count);
		setMaxPerPage_Search(maxPerPage_Search);
		setMaxPerPage_Content(maxPerPage_Content);
		setNewComment(isNewComment);
		setProductFileUp(isProductFileUp);
		setShowPublicNote(isShowPublicNote);
		setProductCheck(isProductCheck);
		setHitHot_Count(hitHot_Count);
		setMaxFileSize(maxFileSize);
		setSaveUpFilesPath(saveUpFilesPath);
		setUpFileType(upFileType);
		setDelUpFiles(isDelUpFiles);
		setSessionTime(sessionTime);
		
	}
	public WebConfigure() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	
		
}
